package com.coderman.basketball.app.converter;

import com.coderman.basketball.client.dto.activity.SignUpDTO;
import com.coderman.basketball.domain.model.activity.SignUpRecordBO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * Description:
 * date: 2021/5/19
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
@Mapper
public interface ActivityConverter {
    ActivityConverter INSTANCE = Mappers.getMapper(ActivityConverter.class);

    @Mapping(source = "playerDTO", target = "playerBO")
    SignUpRecordBO dto2bo(SignUpDTO signUpDTO);

}
